package com.hedl.classroom.feignclient;

import com.hedl.classroom.feignclient.impl.CheckCodeClientFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Big Watermelon
 * @description 搜索服务远程接口
 * @date 2023/12/10/19:39
 */
@FeignClient(value = "checkcode-api" ,fallbackFactory = CheckCodeClientFactory.class)
public interface CheckCodeClient {

    @PostMapping("/checkcode/verify")
    public Boolean verify(@RequestParam("key") String key, @RequestParam("code") String code);
}
